projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2079df
)
Allow init/deinit in filters to be optional.
author
robertl
<robertl>
Tue, 8 Jun 2004 16:04:03 +0000
(16:04 +0000)
committer
robertl
<robertl>
Tue, 8 Jun 2004 16:04:03 +0000
(16:04 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 477e2368a57267df93fa0c5a6c24810b572b884f..a9fb1dc352039984ae276a31c4c449c0a8e2c26a 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-192,9
+192,9
@@
main(int argc, char *argv[])
fvecs = find_filter_vec(optarg, &fvec_opts);
if (fvecs) {
- fvecs->f_init(fvec_opts);
+
if (fvecs->f_init)
fvecs->f_init(fvec_opts);
fvecs->f_process();
- fvecs->f_deinit();
+
if (fvecs->f_deinit)
fvecs->f_deinit();
free_filter_vec(fvecs);
} else {
fatal("Unknown filter '%s'\n",optarg);